package com.itqf.service.impl;


import com.itqf.service.GoodsService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/10
 * @Time: 上午10:26
 */
@Service
public class GoodsServiceImpl  implements GoodsService {
    public void addGoods(String  name) {

        System.out.println("add goods!!!....."+name);//核心代码
    }

    public int updateGoods() {
        try {
            Thread.sleep(3000);//模拟耗时操作
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("update goods!!!.....");////核心代码

        return  1;

    }
}
